package com.nervenets.web.controller.bank;

import com.nervenets.Global;
import com.nervenets.web.controller.TokenParams;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@EqualsAndHashCode(callSuper = true)
@Data
public class BindingParams extends TokenParams {
    @ApiModelProperty(value = "手机号码", required = true)
    @Pattern(regexp = Global.RegExp.MOBILE, message = "请输入正确的手机号码")
    private String mobile;//
    @ApiModelProperty(value = "绑定的I类卡号", required = true)
    @NotNull(message = "绑定的I类卡号不能为空")
    private String bindCard;//
}
